<?php

namespace common\validate;

class TenantEvent extends BaseValidate
{
    // 验证规则
    protected $rule = [];

    // ReAdd 验证规则定义
    public function sceneReAdd()
    {
        return $this
            ->append("data.message_id", "require")
            ->append("data.message_data", "require");
    }

    // Ack 验证规则定义
    public function sceneAck()
    {
        return $this
            ->append("data.message_id|消息id", "require");
    }
}
